<%@ page import="java.util.*" %>

<%
   
%>
<jsp:useBean id="userBean" class="sigcBeans.userBean" scope="session">
<jsp:setProperty name="userBean" property="*"/>
</jsp:useBean>

<% 
   if (userBean.fazLogin(request.getParameter("txtLogin"),request.getParameter("txtPasswd"))) {
	   session.setAttribute("authorized", "yes");
	   session.setAttribute("login",request.getParameter("txtLogin"));
	   
%>
   <jsp:forward page="index.jsp"/>
<%
   }  else {
	   session.setAttribute("authorized", "no");
%>
   <jsp:forward page="index.jsp"/> 
<%
   }
%>
